-- GENERATED SPELL FOR [Lightning Charged Iron Dwarf] --


function spell0_34199(pUnit, Event) --@Lightning Charged,Self--
pUnit:FullCastSpellOnTarget(64889,pUnit)
pUnit:RegisterEvent('Sorts_34199', 675, 1)
end

function spell1_34199(pUnit, Event) --@Lightning Charged,Self--
pUnit:FullCastSpellOnTarget(64975,pUnit)
pUnit:RegisterEvent('Sorts_34199', 20326, 1)
end

function Sorts_34199(pUnit, Event)
local choix_sorts_34199 = math.random(0, 1)
if choix_sorts_34199 == 0 then
pUnit:RegisterEvent('spell0_34199', 1, 1)
end
if choix_sorts_34199 == 1 then
pUnit:RegisterEvent('spell1_34199', 1, 1)
end
end

function mob34199_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34199', math.random(1500, 3000), 1)
end

function mob34199_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34199_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34199_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34199, 1, 'mob34199_Action')
RegisterUnitEvent(34199, 2, 'mob34199_Leave')
RegisterUnitEvent(34199, 3, 'mob34199_Kill')
RegisterUnitEvent(34199, 4, 'mob34199_Die')
